﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnTheWay.Domain;
using OnTheWay.Interfaces;
using OnTheWay.Models;
using Models;
using LocalService.Local.Interfaces;

namespace LocalService.Impl
{
    /// <summary>
    /// Exhibit对象实现
    /// </summary>
    public class ExhibitLocalImpl : DomainImpl<Exhibit>, IExhibitLocal { }
    /// <summary>
    /// ExhibitType对象实现
    /// </summary>
    public class ExhibitTypeLocalImpl : DomainImpl<ExhibitType>, IExhibitTypeLocal { }
    /// <summary>
    /// ExhibitUnit对象实现
    /// </summary>
    public class ExhibitUnitLocalImpl : DomainImpl<ExhibitUnit>, IExhibitUnitLocal { }
    /// <summary>
    /// SysAdmin对象实现
    /// </summary>
    public class SysAdminLocalImpl : DomainImpl<SysAdmin>, ISysAdminLocal
    {
        public SysAdmin Verify(string loginname, string password)
        {
            return new SysAdmin() { Name="树朾", Sex=true, IsSuper=true,ID = Guid.NewGuid()};
            //string where = " where LoginName='" + loginname + "' and Password='"+password+"' ";
            //IList<SysAdmin> list = GetListByPage(where, new Page(0, 1));
            //if (list != null && list.Count == 1)
            //{
            //    return list[0];
            //}
            //return null;
        }
    }
    /// <summary>
    /// User对象实现
    /// </summary>
    public class UserLocalImpl : DomainImpl<User>, IUserLocal { }
}
